package com.gzhryc.shared_device.pcl.code.dao.models;

import com.gzhryc.common.NumberTools;

import java.util.ArrayList;
import java.util.List;

public class SetMealContent {

    public List<Item> items;

    public SetMealContent(){
        this.items = new ArrayList<>();
    }

    public List<Item> getItems() {
        return items;
    }

    public void setItems(List<Item> items) {
        this.items = items;
    }


    public static class Item {

        private Integer id;
        private String name;
        private Integer times;
        private Integer money;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Integer getTimes() {
            return times;
        }

        public void setTimes(Integer times) {
            this.times = times;
        }

        public Integer getMoney() {
            return money;
        }

        public void setMoney(Integer money) {
            this.money = money;
        }

        public String getMoneyStr(){
            return NumberTools.getMoneyStr(this.money);
        }

        public Integer getHours(){
            Integer hours = this.times / 60;
            return hours;
        }
    }
}
